
#include "mymem.h"
/* Use this function to see what happens when your malloc and free
 * implementations are called.  Run "memplay <args>" to call this function.
 * We have given you a simple example to start.
 */

int main(int argc, char **argv) {
	char* strat = "first";
	int a,b,c,d,e;
	if(argc > 1)
	  strat = argv[1];
	mymalloc_fp mymalloc = to_malloc_implementation(strat);	
	/* A simple example.  
	   Each algorithm should produce a different layout. */
	
	initmem(500);
	
	a = mymalloc(100);
	b = mymalloc(100);
	c = mymalloc(100);
	myfree(b);
	d = mymalloc(50);
	myfree(a);
	e = mymalloc(25);
	
	mem_debug_print_data();
	mem_debug_print_statistics();
	return 0;
}

